#!/bin/sh
#
# cluster_monitor.sh
#

shellcmd=$1
configfile=$2
username=$3

su $username -c "source ~/.bashrc ;$shellcmd -c $configfile monitor all"

if [ $? -ne 0 ]; then
	exit 100
fi

exit 0
